import { ProColumns } from '@ant-design/pro-components'

const columns: ProColumns[] = [
  {
    title: '设备名称',
    dataIndex: 'equipmentName',
    formItemProps: {
      rules: [
        {
          required: true,
          message: '此项为必填项'
        }
      ]
    },
    width: '30%'
  },
  {
    title: '设备使用时长',
    dataIndex: 'usageDuration',
    search: false,
    width: '30%'
  },
  {
    title: '预计使用寿命',
    dataIndex: 'serviceLife',
    search: false,
    width: '30%'
  },
  {
    title: '报警设备编号',
    dataIndex: 'alarmDeviceId',
    search: false,
    width: '30%'
  },
  {
    title: '设备健康级别',
    dataIndex: 'healthyLevel',
    valueType: 'select',
    valueEnum: {
      1: '优秀',
      2: '良好',
      3: '合格',
      4: '不合格'
    },
    width: '30%'
  }
]
export default columns
